|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectagents.anac.y2011.Nice_Tit_for_Tat.BidHistory
public class BidHistory
| Constructor Summary | |
|---|---|
BidHistory()
|
|
BidHistory(BidHistory b)
|
|
BidHistory(UtilitySpace u)
Pretends all bids in the domain were made on t = 0. |
|
| Method Summary | |
|---|---|
void |
add(BidDetails b)
|
BidHistory |
filterBetween(double minU,
double maxU,
double minT,
double maxT)
|
BidHistory |
filterBetweenTime(double minT,
double maxT)
|
double |
getAverageUtility()
|
Bid |
getBestBid()
Gets the best bid for me. |
BidDetails |
getBestBidDetails()
Gets the details of the best bid for me. |
BidHistory |
getBestBidHistory(int n)
Gets the history part of the best n (or less) bids for me. |
BidDetails |
getBidDetailsOfUtility(double u)
Get the BidDetails of the Bid with utility closest to u. |
BidHistory |
getCopySortedToUtility()
|
BidDetails |
getFirstBidDetails()
|
java.util.List<BidDetails> |
getHistory()
|
Bid |
getLastBid()
|
BidDetails |
getLastBidDetails()
|
double |
getMaximumUtility()
|
double |
getMinimumUtility()
|
BidDetails |
getRandom()
|
BidDetails |
getRandom(java.util.Random r)
|
Bid |
getSecondLastBid()
|
java.util.Iterator<BidDetails> |
iterator()
|
int |
size()
|
void |
sortToUtility()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BidHistory()
public BidHistory(BidHistory b)
public BidHistory(UtilitySpace u)
| Method Detail |
|---|
public BidHistory filterBetweenTime(double minT,
double maxT)
public BidHistory filterBetween(double minU,
double maxU,
double minT,
double maxT)
public void add(BidDetails b)
public BidDetails getLastBidDetails()
public BidDetails getFirstBidDetails()
public Bid getLastBid()
public Bid getSecondLastBid()
public int size()
public java.util.List<BidDetails> getHistory()
public BidDetails getBidDetailsOfUtility(double u)
BidDetails of the Bid with utility closest to u.
public double getMaximumUtility()
public double getMinimumUtility()
public Bid getBestBid()
public BidDetails getBestBidDetails()
public BidHistory getBestBidHistory(int n)
public BidDetails getRandom()
public BidDetails getRandom(java.util.Random r)
public double getAverageUtility()
public void sortToUtility()
public BidHistory getCopySortedToUtility()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Iterator<BidDetails> iterator()
iterator in interface java.lang.Iterable<BidDetails>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||